/* 清除默认样式 */
* {
  margin: 0;
  padding: 0;
  list-style: 0;
  -webkit-touch-callout: none;
  box-sizing: border-box;
  font-size: var(--el-font-size-base);
}

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--el-background-color-base);
}

ul, li, ol {
  list-style: none;
}

a {
  text-decoration: none;
}

.f-bold {
  font-weight: bold;
}

.f-left {
  text-align: left;
}

.f-right {
  text-align: right;
}

.f-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
  vertical-align: middle;
}

.text-cut {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-cut-two {
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-cut-three {
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.round {
  border-radius: 50%;
}
.rounded{
  border-radius: 50rpx;
}
.radius-5{
  border-radius:10rpx
}

/* flex布局 */
.flex {
  display: flex;
}

.flex-column {
  @extend .flex;
  flex-direction: column;
}

.flex-center {
  @extend .flex;
  justify-content: center;
  align-items: center;
}

.align-center {
  @extend .flex;
  align-items: center;
}


.justify-center {
  @extend .flex;
  justify-content: center;
}

.justify-end {
  @extend .flex;
  justify-content: flex-end;
}

.justify-between {
  @extend .flex;
  justify-content: space-between;
}

.justify-around {
  @extend .flex;
  justify-content: space-around;
}

.flex-shrink {
  @extend .flex;
  flex-shrink: 0;
}

.flex-wrap {
  @extend .flex;
  flex-wrap: wrap;
}

/* 定位 */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}


/* 浮动 */
.float-left {
  float: left;
}

.float-right {
  float: right;
}

.none {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  overflow: hidden;
}

/* 图标大小 */
.icon, .iconfont {
  font-size: 30rpx;
}

/* 宽/高/内边距/外边距/行高/flex占比 */
@for $i from 1 through 6 {
  .flex-#{$i} {
      flex: $i;
  }
}

$x: 1rpx;
$nums: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 17, 18, 19, 20, 22, 24, 25, 26, 28, 30, 32, 34, 35, 36, 40, 42, 45, 48, 50, 54, 55, 58, 60, 70, 72, 80, 90, 100,120;

@for $i from 0 through length($nums) {

  .w-#{$i} {
    width: $x * $i;
  }

  .h-#{$i} {
    height: $x * $i;
  }

  .p-#{$i} {
      padding: $x * $i;
      
  }

  .p-l-#{$i} {
      padding-left: $x * $i;
  }

  .p-r-#{$i} {
      padding-right: $x * $i;
  }

  .p-t-#{$i} {
      padding-top: $x * $i;
  }

  .p-b-#{$i} {
      padding-bottom: $x * $i;
  }

  .m-#{$i} {
      margin: $x * $i;
  }

  .m-l-#{$i} {
      margin-left: $x * $i;
  }

  .m-r-#{$i} {
      margin-right: $x * $i;
  }

  .m-t-#{$i} {
      margin-top: $x * $i;
  }

  .m-b-#{$i} {
      margin-bottom: $x * $i;
  }

  .f-s-#{$i} {
      font-size: $x * $i !important;
  }

  .l-h-#{$i} {
      line-height: $x * $i;
  }

  .flex-g-#{$i} {
      flex-grow: $i;
  }
}
/*clear*/
.clear-both{
  clear: both;
}
.clear-left{
  clear: left;
}
.clear-right{
  clear: right;
}


//自定义颜色
.color-fff{
  color:#fff;
}
.color-000{
  color:#000;
}
.color-111{
  color:#111;
}
.color-222{
  color:#222;
}
.color-333{
  color:#333;
}
.color-444{
  color:#444;
}
.color-555{
  color:#555
}
.color-666{
  color:#666 !important;
}
.color-888{
  color:#888;
}
.color-999{
  color:#999;
}
.color-ccc{
  color:#ccc;
}
.color-323232{
  color:#323232;
}
.color-main{
  color:#4D8EFF;
}


.label-style{
  font-size: 14px;
  color: #333;
  font-weight: 700;
  padding-right: 8px;
  margin-left: 18px;
}
.over-dot{
	  overflow:hidden; //超出的文本隐藏
	  text-overflow:ellipsis; //用省略号显示
	  white-space:nowrap; //不换行
}

/* loading */
.warp {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}
.rect {
	width: 40px;
	height: 40px;
}
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-ripple view {
  position: absolute;
  border: 4px solid #4D8EFF;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple view:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 18px;
    left: 18px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  4.9% {
    top: 18px;
    left: 18px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  5% {
    top: 18px;
    left: 18px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 36px;
    height: 36px;
    opacity: 0;
  }
}

